package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CartInfo {
    private List<CartInfoItem> itemList;
    private int totalPrice;
    private String shippingFee;
    private String bonusUsed;
    private int sumPrice;

    @JsonProperty("ItemList")
    public void setItemList(List<CartInfoItem> itemList) {
        this.itemList = itemList;
    }

    @JsonProperty("TotalMoney")
    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    @JsonProperty("ShipFee")
    public void setShippingFee(String shippingFee) {
        this.shippingFee = shippingFee;
    }

    @JsonProperty("BonusUsed")
    public void setBonusUsed(String bonusUsed) {
        this.bonusUsed = bonusUsed;
    }

    @JsonProperty("Money")
    public void setSumPrice(int sumPrice) {
        this.sumPrice = sumPrice;
    }

    public List<CartInfoItem> getItemList() {
        return itemList;
    }

    public int getTotalPrice() {
        return totalPrice;
    }

    public String getShippingFee() {
        return shippingFee;
    }

    public String getBonusUsed() {
        return bonusUsed;
    }

    public int getSumPrice() {
        return sumPrice;
    }
}

